<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        #box {
            width: 400px;
            height: 400px;
            border: solid;
        }
    </style>
</head>

<body>

    <div id="box">
        hello box
    </div>
    <script>
        const box = document.getElementById('box');

        box.onclick = function (e) {
            console.log(e.button);
            console.log('shiftKey', e.shiftKey);
            console.log('altKey', e.altKey);
            console.log('ctrlKey', e.ctrlKey);
            console.log('metaKey', e.metaKey);
            if (e.altKey && ctrlKey) {
                console.log('....');
            }
        }

        box.oncontextmenu = function (e) {
            console.log(e.button);
        }




    </script>

</body>

</html>